package com.example.video.plateRecognition.application.command;

import com.example.video.plateRecognition.client.dto.LoginQry;
import com.example.video.plateRecognition.infrastructure.manage.VehicleManage;
import org.springframework.stereotype.Component;

@Component
public class AbilityGetQryExe {

    public String execute(LoginQry qry){
        VehicleManage manage = new VehicleManage();
        // 初始化
        manage.initDevice();


        manage.login_V40(qry.getIp(),(short) 8000,qry.getUsername(),qry.getPassword());

        String result = manage.getDeviceSystemAbility();
        //用户注销，释放SDK
        manage.deviceLogout();
        return result;
    }
}
